﻿@model NewsSettingsModel
@{
    //page title
    ViewBag.Title = T("Admin.Configuration.Settings.News").Text;
}
<form asp-controller="Setting" asp-action="News" method="post">
    
    <div asp-validation-summary="All"></div>

    <div class="row">
        <div class="col-md-12">
            <div class="x_panel light form-fit">
                <div class="x_title">
                    <div class="caption">
                        <i class="fa fa-fw fa-sliders"></i>
                        @T("Admin.Configuration.Settings.News")
                    </div>
                    <div class="actions">
                        <div class="btn-group btn-group-devided">
                            <button class="btn btn-success" type="submit" name="save"><i class="fa fa-check"></i> @T("Admin.Common.Save") </button>
                        </div>
                    </div>
                    <vc:admin-widget widget-zone="news_settings_buttons" additional-data="null" />
                </div>
                <div class="x_content">
                    <div class="form-horizontal">
                        <div class="form-body">
                            @await Component.InvokeAsync("StoreScopeConfiguration")
                        </div>
                    </div>
                </div>
                <div class="x_content form">
                    <vc:admin-widget widget-zone="news_settings_top" additional-data="null" />
                    <div class="form-horizontal">
                        <div class="form-body">
                            <div class="form-group">
                                <div class="col-xs-8 col-md-4 col-sm-4 text-right">
                                    @Html.OverrideStoreCheckboxFor(model => model.Enabled_OverrideForStore, model => model.Enabled, Model.ActiveStoreScopeConfiguration)
                                    <admin-label asp-for="Enabled" class="control-label" />
                                </div>
                                <div class="col-xs-4 col-md-8 col-sm-8">
                                    <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                                        <admin-input asp-for="Enabled" />
                                         <div class="control__indicator"></div>
                                    </label>
                                    <span asp-validation-for="Enabled"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-xs-8 col-md-4 col-sm-4 text-right">
                                    @Html.OverrideStoreCheckboxFor(model => model.AllowNotRegisteredUsersToLeaveComments_OverrideForStore, model => model.AllowNotRegisteredUsersToLeaveComments, Model.ActiveStoreScopeConfiguration)
                                    <admin-label asp-for="AllowNotRegisteredUsersToLeaveComments" class="control-label" />
                                </div>
                                <div class="col-xs-4 col-md-8 col-sm-8">
                                    <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                                        <admin-input asp-for="AllowNotRegisteredUsersToLeaveComments" />
                                         <div class="control__indicator"></div>
                                    </label>
                                    <span asp-validation-for="AllowNotRegisteredUsersToLeaveComments"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-xs-8 col-md-4 col-sm-4 text-right">
                                    @Html.OverrideStoreCheckboxFor(model => model.NotifyAboutNewNewsComments_OverrideForStore, model => model.NotifyAboutNewNewsComments, Model.ActiveStoreScopeConfiguration)
                                    <admin-label asp-for="NotifyAboutNewNewsComments" class="control-label" />
                                </div>
                                <div class="col-xs-4 col-md-8 col-sm-8">
                                    <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                                        <admin-input asp-for="NotifyAboutNewNewsComments" />
                                         <div class="control__indicator"></div>
                                    </label>
                                    <span asp-validation-for="NotifyAboutNewNewsComments"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-xs-8 col-md-4 col-sm-4 text-right">
                                    @Html.OverrideStoreCheckboxFor(model => model.ShowNewsOnMainPage_OverrideForStore, model => model.ShowNewsOnMainPage, Model.ActiveStoreScopeConfiguration)
                                    <admin-label asp-for="ShowNewsOnMainPage" class="control-label" />
                                </div>
                                <div class="col-xs-4 col-md-8 col-sm-8">
                                    <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                                        <admin-input asp-for="ShowNewsOnMainPage" />
                                         <div class="control__indicator"></div>
                                    </label>
                                    <span asp-validation-for="ShowNewsOnMainPage"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-xs-8 col-md-4 col-sm-4 text-right">
                                    @Html.OverrideStoreCheckboxFor(model => model.MainPageNewsCount_OverrideForStore, model => model.MainPageNewsCount, Model.ActiveStoreScopeConfiguration)
                                    <admin-label asp-for="MainPageNewsCount" class="control-label" />
                                </div>
                                <div class="col-xs-4 col-md-8 col-sm-8">
                                    <admin-input asp-for="MainPageNewsCount" />
                                    <span asp-validation-for="MainPageNewsCount"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-xs-8 col-md-4 col-sm-4 text-right">
                                    @Html.OverrideStoreCheckboxFor(model => model.NewsArchivePageSize_OverrideForStore, model => model.NewsArchivePageSize, Model.ActiveStoreScopeConfiguration)
                                    <admin-label asp-for="NewsArchivePageSize" class="control-label" />
                                </div>
                                <div class="col-xs-4 col-md-8 col-sm-8">
                                    <admin-input asp-for="NewsArchivePageSize" />
                                    <span asp-validation-for="NewsArchivePageSize"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-xs-8 col-md-4 col-sm-4 text-right">
                                    @Html.OverrideStoreCheckboxFor(model => model.ShowHeaderRssUrl_OverrideForStore, model => model.ShowHeaderRssUrl, Model.ActiveStoreScopeConfiguration)
                                    <admin-label asp-for="ShowHeaderRssUrl" class="control-label" />
                                </div>
                                <div class="col-xs-4 col-md-8 col-sm-8">
                                    <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                                        <admin-input asp-for="ShowHeaderRssUrl" />
                                         <div class="control__indicator"></div>
                                    </label>
                                    <span asp-validation-for="ShowHeaderRssUrl"></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <vc:admin-widget widget-zone="news_settings_bottom" additional-data="null" />
                </div>
            </div>
        </div>
    </div>
</form>